package com.yellow.dispatchservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("dispatch_orders")
public class DispatchOrder {

    @TableId(value = "dispatch_id", type = IdType.AUTO)
    private Integer dispatchId;

    @TableField("order_id")
    private Integer orderId;

    @TableField("dispatch_time")
    private LocalDateTime dispatchTime;

    @TableField("status")
    private String status;
}
